<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/taglibs.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/common/header.jsp"%>
<script type="text/javascript">
var var_title='<s:text name="erp.listbusiness"><s:param><s:text name="erp.system.posts.businame"></s:text></s:param></s:text>';

var var_column_postNum='<s:text name="erp.system.posts.postnum"></s:text>';
var var_column_postName='<s:text name="erp.system.posts.postname"></s:text>';
var var_column_deptId='<s:text name="erp.system.posts.deptId"></s:text>';
var var_column_description='<s:text name="erp.system.posts.description"></s:text>';

var var_search_title='<s:text name="erp.searchbusiness"><s:param><s:text name="erp.system.posts.businame"></s:text></s:param></s:text>';
var var_add_title='<s:text name="erp.addbusiness"><s:param><s:text name="erp.system.posts.businame"></s:text></s:param></s:text>';
var var_edit_title='<s:text name="erp.editbusiness"><s:param><s:text name="erp.system.posts.businame"></s:text></s:param></s:text>';

</script>
<script type="text/javascript" src="${ctx}/js/erp/system/listPosts.js"></script>

<title><s:text name="erp.listbusiness"><s:param><s:text name="erp.system.posts.businame"></s:text></s:param></s:text></title>
</head>
<body class="easyui-layout">
     
     <div region="center" style="border: none;">
        <div id="searchPanelBox">
	        <div id="searchPanel">
	            <form id="queryPostsForm" name="queryPostsForm" action="" method="post">
	                <table class="tablewidth1">
	                	<tr>
	                		<td width="10%" align="right">
	                			<s:text name="erp.system.posts.postnum"></s:text>：
	                		</td>
	                		<td width="15%" align="left">
	                			<input name="postNum" class="mt10" style="width: 180px;" type="text" value=""/>
	                		</td>
	                		<td width="10%" align="right">
	                			<s:text name="erp.system.posts.postname"></s:text>：
	                		</td>
	                		<td width="20%" align="left">
	                			<input name="Postname" class="mt10" style="width: 180px;"  type="text" value=""/>
	                		</td>
	                		<td width="45%" align="left">
	                			<a id="queryPostsBtn" class="easyui-linkbutton" iconCls="icon-search">&nbsp;<s:text name="erp.search"></s:text>&nbsp;</a>
	                		</td>
	                	</tr>
	                </table>
	                <div class="fn-clear"></div>
	            </form>
	        </div>
        </div>
        <div class="m5">
            <table id="dataGrid" data-options="toolbar:'#dg-toolbar'"></table>
        </div>
    </div>
    <div id="dg-toolbar">
        <div class="m5">
            <a id="add-posts-btn" class="easyui-linkbutton" iconCls="icon-add" plain="false"><s:text name="erp.add"></s:text></a>
            <a id="delete-posts-btn" href="#" class="easyui-linkbutton" iconCls="icon-remove" plain="false" ><s:text name="erp.delete"></s:text></a>
        </div>
    </div>
    
<script type="text/javascript">
document.onkeypress = function(e){
	e = e || window.event;
	var keyCode = e.which || e.keyCode;
	if(keyCode==KEY_ENTER){
		$('#queryPostsBtn').click();
	}
};		

</script>

</body>
</html>